package com.oocl.o2o.admin.dao;

import java.util.List;

import com.oocl.o2o.admin.entity.FailReason;

public interface FailReasonDao {
	/**
	 * 
	 * @param merchantId
	 * @return
	 */
	public FailReason findByMerchantId(String merchantId);
	/**
	 * 
	 * @param uname
	 * @return
	 */
	public FailReason findByMerchantUname(String uname);
	/**
	 * 
	 * @param failReason
	 * @return
	 */
	public FailReason add(FailReason failReason);
	/**
	 * 
	 * @return
	 */
	public List<FailReason> findAll();
	/**
	 * 
	 * @param failReason
	 * @return
	 */
	public FailReason update(FailReason failReason);
	/**
	 * 
	 * @param merchantId
	 * @return
	 */
	public FailReason deleteByMerchantId(String merchantId);
	
	/**
	 * 
	 * @param id
	 * @return
	 */
	public FailReason delete(String id);
	
	
}
